const express = require('express');
const router = express.Router();
const { Article }  = require('../../models')

/* GET users listing. */
router.get('/', async function(req, res) {
    const articles = await Article.findAll();
    res.json({
        status:200,
        message:'查询文章成功',
        data:{
            articles
        }
    });
});

module.exports = router;
